package com.lti.appnet.common.util;

import java.util.Map;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class ResponseBundle<K> {

	private boolean status;
	private K actionResult;
	private String errorMessage;
	private Map<String, String> fieldError;
	private String actionMessage;

	
	
	public ResponseBundle() {
		super();
	}
	
	public ResponseBundle(K actionResult){
		this.actionResult = actionResult;
		this.status = true;
	}

	public void setSuccess(K actionResult){
		this.actionResult = actionResult;
		this.status = true;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public K getActionResult() {
		return actionResult;
	}

	public void setActionResult(K actionResult) {
		this.actionResult = actionResult;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public Map<String, String> getFieldError() {
		return fieldError;
	}

	public void setFieldError(Map<String, String> fieldError) {
		this.fieldError = fieldError;
	}

	public String getActionMessage() {
		return actionMessage;
	}

	public void setActionMessage(String actionMessage) {
		this.actionMessage = actionMessage;
	}

}
